package net.stogi.common.api.exception;

public class BusinessException extends Exception {

	private static final long serialVersionUID = 6256473178235021937L;

	private Messages messages;

	public BusinessException() {}

	public BusinessException(Messages messages) {
		this.messages = messages;
	}

	public BusinessException(String message) {
		super(message);
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @return the messages
	 */
	public Messages getMessages() {
		return messages;
	}

	/**
	 * @param messages
	 *            the messages to set
	 */
	public void setMessages(Messages messages) {
		this.messages = messages;
	}
}
